http://wiki.ocsinventory-ng.org/index.php/Documentation:Server/pl
Wymagania:
Debian 7.8.0 x64
aptitude update aptitude install openssh-server mc vim mysql-server apache2 phpmyadmin screen htop nmap make sudo libmakefile-dom-perl build-essential aptitude install libxml-simple-perl libcompress-zlib-perl libdbi-perl libdbd-mysql-perl libapache-dbi-perl libnet-ip-perl libsoap-lite-perl libapache2-mod-perl2 a2enmod perl mkdir /usr/include/apache2
cpan -i XML::Entities #cpan -i Bundle::CPAN
cpan -i Compress::Zlib
cpan -i Apache2::SOAP
aptitude install libphp-pclzip php5-gd vim /etc/mysql/my.cnf max_allowed_packet = 500M
vim /etc/php5/apache2/php.ini upload_max_filesize = 100M post_max_size = 100M
wget https://launchpad.net/ocsinventory-server/stable-2.1/2.1.2/+download/OCSNG_UNIX_SERVER-2.1.2.tar.gz tar -xvzf OCSNG_UNIX_SERVER-2.1.2.tar.gz cd OCSNG_UNIX_SERVER-2.1.2 && sh setup.sh /etc/init.d/apache2 restart
http://localhost/phpmyadmin CREATE Database ocsweb CREATE USER 'ocs'@'%'
http://localhost/ocsreports/
cd /usr/share/ocsinventory-reports/ocsreports/ && mv install.php install.php_
change ocsweb DB password
vim /usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php
change admin pas
http://localhost/ocsreports/index.php?function=admin_user
vim /etc/apache2/conf.d/z-ocsinventory-server.conf
PerlSetEnv OCS_DB_NAME ocsbaza PerlSetEnv OCS_DB_LOCAL ocsbaza PerlSetEnv OCS_DB_USER ocsuser PerlSetVar OCS_DB_PWD ocspass